package com.example.demo.mapper;

<<<<<<< HEAD
import com.example.demo.bean.CmsArticle;
=======
>>>>>>> c827499e8bb31ca32bc4e6604c6b0e46aefc968e
import java.util.List;

import org.apache.ibatis.annotations.Mapper;

<<<<<<< HEAD
=======
import com.example.demo.bean.CmsArticle;

>>>>>>> c827499e8bb31ca32bc4e6604c6b0e46aefc968e
@Mapper
public interface CmsArticleMapper {
    int deleteByPrimaryKey(String id);

    int insert(CmsArticle record);

    CmsArticle selectByPrimaryKey(String id);

    List<CmsArticle> selectAll();

    int updateByPrimaryKey(CmsArticle record);
<<<<<<< HEAD

    /**
          * 查找和指定栏目相关联的文章个数
     * @param categroyId  栏目编号
     * @return
     */
    int selectArticleCountByCategoryId(String categroyId);
}
=======
    
    List<CmsArticle> allArticleWithParent();
}
>>>>>>> c827499e8bb31ca32bc4e6604c6b0e46aefc968e
